/*
 
 * @Date: 2019-05-21 17:29:30 
 * @Last Modified by:  
 * @Last Modified time: 2019-09-16 21:50:34
 */
import { NativeModules } from 'react-native';

function isDebugEnv() {
  const { scriptURL } = NativeModules.SourceCode
  const devEvn = scriptURL.split('&')[1]
  return devEvn === 'dev=true'
}

module.exports = isDebugEnv() ? 'dev' : 'prod'